//
// JOOReports - The Open Source Java/OpenOffice Report Engine
// Copyright (C) 2004-2006 - Mirko Nasato <mirko@artofsolving.com>
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
// Lesser General Public License for more details.
// http://www.gnu.org/copyleft/lesser.html
//
package net.sf.jooreports.web.spring.controller;

import javax.servlet.http.HttpServletRequest;

import freemarker.ext.servlet.HttpRequestParametersHashModel;

/**
 * A predefined document generator that build the model from the passed HTTP parameters.
 */
public class HttpParametersDocumentGenerator extends AbstractDocumentGenerator {

    protected Object getModel(HttpServletRequest request) throws Exception {
        return new HttpRequestParametersHashModel(request);
    }
}
